package com.easychat.mappers;

import com.easychat.entity.po.UserInfo;
import com.easychat.entity.query.UserInfoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface  UserInfoMapper<T,P> extends BaseMapper<T,P> {

    /**
     * 根据UserId更新
     */
    Integer updateByUserId(@Param("bean") T t, @Param("userId") String userId);
    UserInfo selectByEmail(String email);

    //void insert(UserInfo userInfo);

    UserInfo selectByUserId(String userId);


    //List<UserInfo> selectList(UserInfoQuery userInfoQuery);
}
